#ifndef __TLB_H__
#define __TLB_H__

#include "common.h"
#define TLB_SIZE 64

typedef struct {
    bool valid;
    uint32_t tag;
    uint32_t page;
} TLB;

TLB tlb[TLB_SIZE];

void init_tlb();
int read_tlb(lnaddr_t);
void write_tlb(lnaddr_t, hwaddr_t);
#endif